﻿<%@ Control Language="c#" Inherits="Web.Control.WWW.Files.Fileslist" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("SF028")%>: <%=Tm %></h1>
							</div>
							<div class="submenuN_button"><a class="naddbtn btnspec" href="/files/upload.htm"><span>&nbsp;&nbsp;&nbsp;<%=GetText("SF203")%>&nbsp;&nbsp;&nbsp;</span></a></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001right">
		                <div class="Center9001Content">
								<div class="files_area">
									<div>
										<div class="floatl"><%=GetText("C0016")%> <select id="Learning1" class="common180" name="Learning"onchange="searl()"><option value="all" selected><%=GetText("C0028")%></option><%=GetLanguageSelect(Learn)%></select>&nbsp;&nbsp;&nbsp;&nbsp;<%=GetText("AS091")%> <select id="Using1" class="common180" name="Learning"onchange="searl()"><option value="all" selected><%=GetText("C0028")%></option><%=GetLanguageSelect(BaseL)%></select></div>
										<div class="floatr"><%=GetText("AS143",new string[]{RecordCount.ToString()})%></div>
										<div class="clear"></div>
									</div>
									<%if (RecordCount != 0){%>
									<div class="sort_language" style="text-align:right">
										<%=GetText("C2017")%>: <span id="sort1"><%=dt == 1 ? "<strong>" + GetText("C2002") + "</strong>" : "<a href=\"" + LoginHost + "/files/tag/"+Tm+"/learn-"+ Learn + "-" + BaseL + "-1-1.htm\">" + GetText("C2002") + "</a>"%></span> | <span id="sort2"><%=dt == 2 ? "<strong>" + GetText("C2011") + "</strong>" : "<a href=\"" + LoginHost + "/files/tag/" + Tm + "/learn-" + Learn + "-" + BaseL + "-2-1.htm\">" + GetText("C2011") + "</a>"%></span> | <span id="sort3"><%=dt == 3 ? "<strong>" + GetText("C2010") + "</strong>" : "<a href=\"" + LoginHost + "/files/tag/" + Tm + "/learn-" + Learn + "-" + BaseL + "-3-1.htm\">" + GetText("C2010") + "</a>"%></span><span id="sort4"> | <%=dt == 4 ? "<strong>" + GetText("SF034") + "</strong>" : "<a href=\"" + LoginHost + "/files//tag/" + Tm + "/learn-" + Learn + "-" + BaseL + "-4-1.htm\">" + GetText("SF034") + "</a>"%></span>
									</div>
									<%}%>
									<div class="Content628">
											<asp:Repeater ID="repFiles" runat="server">
											<ItemTemplate>
											<div class="margin20">
												<div class="floatl wid65">
													<div style="text-align:center"><img src="/Images/<%#Eval("FileFormat").ToString().Trim().Replace('/','_')%>.gif" /></div>
													<div style="text-align:center"><%#GetText("AS148",new string[]{Eval("Views").ToString()})%></div>
												</div>
												<div class="floatr alist_content">
													<span dir="ltr" class="text14"><a href="/files/doc/<%#Eval("DocID")%>.htm" title="<%#Eval("Title")%>"><%#Eval("Title")%></a> <img src='/images/fbapp_level_<%#((decimal)Eval("Rates")).ToString("N0")%>.gif' align="absmiddle"  title="<%#GetText("WK020")%>: <%#((decimal)Eval("Rates")).ToString("N1")%>"/></span><br /><%#Lx.Web.Common.UI.Globals.GetString(Eval("Desc").ToString(), 180)%>
													<p class="grey11"><%#BLF.StaticData.HaveLanguageImage(Eval("LanguageLearn").ToString()) ? Eval("LanguageLearn", "<a href='" + LoginHost + "/files/learn-" + Eval("LanguageLearn") + "-all/1-1.htm'><img src=\"/images/language_{0}.gif\" border='0' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString()) }) + "' align='absmiddle' /></a>") : ""%> <a href='<%#LoginHost %>/files/learn-<%#Eval("LanguageLearn")%>-all/1-1.htm'><%#GetText("C0105",new string[]{BLF.StaticData.GetLanguageText(Eval("LanguageLearn").ToString())})%></a>&nbsp;&nbsp;<%#GetText("SF021",new string[]{"<a href='/"+Eval("MemberNo")+".htm'>"+Eval("Nickname")+"</a>"})%>
														<%#(Eval("Likes").ToString() == "0" ? "-&nbsp;" : " -&nbsp;" + GetText("SF035", new string[] { Eval("Likes").ToString() }) + "&nbsp;-&nbsp;")%><%#FormatDiffDate(GetText("C0035"), Eval("DiffLastUpdate").ToString())%></p>
												</div>
												<div class="clear"></div>
											</div>					
											</ItemTemplate>
										</asp:Repeater>
										<div id="divAskQuesPager">
												<%=CreatePageNav(RecordCount, 15, pageIndex,
											"",
											string.Format("<span class='page_none grey10'><a href='{5}/files/tag/{0}/learn-{1}-{2}-{3}-$I$.htm'>{4}</a></span>&nbsp;", HttpUtility.UrlEncode(Tm.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(dt.ToString()), HttpUtility.UrlEncode(GetText("Prev")), LoginHost),
											"",
											string.Format("<span class='page_none grey10'><a href='{5}/files/tag/{0}/learn-{1}-{2}-{3}-$I$.htm'>{4}</a></span>&nbsp;", HttpUtility.UrlEncode(Tm.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(dt.ToString()), HttpUtility.UrlEncode(GetText("Next")), LoginHost),
											string.Format("<span class='page_select'>{0}</span>&nbsp;",pageIndex),
											string.Format("<span class='page_none grey10'><a href='{4}/files/tag/{0}/learn-{1}-{2}-{3}-$I$.htm'>$I$</a></span>&nbsp;", HttpUtility.UrlEncode(Tm.ToString()), HttpUtility.UrlEncode(Learn), HttpUtility.UrlEncode(BaseL), HttpUtility.UrlEncode(dt.ToString()), LoginHost))%>   
										</div>
									</div>
								</div>
						</div>
	                </div>
					<div class="Center9001left">
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2014")%></h4>
								<div class="layer_contentA5">
								<ul class="file_list">
									<asp:Repeater ID="rptLL" runat="server">
											<ItemTemplate>										
												<li><a href='<%=LoginHost%>/files/learn-<%#Eval("LanguageValue")%>-all/1-1.htm' title="<%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%>"><img src='/images/language_<%#Eval("LanguageValue")%>.gif' align='absmiddle' /></a> <a href='<%=LoginHost%>/files/learn-<%#Eval("LanguageValue")%>-all/1-1.htm'><%#GetText("C0105",new string[]{Eval("LanguageText").ToString()})%></a></li>
											</ItemTemplate>
								</asp:Repeater>
								</ul>
								<p align="right"><a href="<%=LoginHost%>/files/Categories.htm"><%=GetText("C0028")%></a></p>
								</div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA">
								<h4><%=GetText("C2001")%></h4>
								<div class="layer_contentA5">
									<ul class="tag_common_right">
										<asp:Repeater ID="repTags" runat="server">
										<ItemTemplate>
											<li><a href="<%#LoginHost%>/files/tag/<%#Eval("TagName")%>-1.htm"><%#Eval("TagName")%></a></li>
											</ItemTemplate>
									</asp:Repeater>
									</ul>
									<div class="clear"></div>
									<p align="right"><a href="<%=LoginHost%>/files/tag/"><%=GetText("AS111")%></a></p>
								</div>
							</div>
						</div>
						<div id="ad_site" class="margin20T">
						<script type="text/javascript">
						  GA_googleFillSlot("all_pages_right160x600");
						</script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="margin10" style="text-align:center">
					<script type="text/javascript">
					  GA_googleFillSlot("all_pages_bottom728x90");
					</script>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script language="javascript">
	var lhost="<%=LoginHost%>";
	var tagname="<%=Tm %>";
	var sort=<%=dt %>;
</script>
